﻿@model sBlog.Net.Models.BlogPostPageViewModel

@{
    ViewBag.Title = string.Format("{0} || page {1}", Model.BlogName.ToLower(), Model.CurrentPageNumber);
}

@Html.Partial("DisqusCounts", Model)

@if (!Model.Any)
{
    <div>@ViewRes.SharedStrings.NoPostsStr</div>
}

@foreach (var post in Model.Posts)
{
    @Html.Partial("Post2", post)
}
<br />

@if (Model.Any && Model.PreviousPageValid)
{
    <div style="float: left">
        @Html.RouteLink(ViewRes.SharedStrings.PreviousPageStr, "Page", new { pageNumber = Model.PreviousPageNumber }, new { @class = "link" })
    </div>
}

@if (Model.Any && Model.NextPageValid)
{
    <div style="float: right">
        @Html.RouteLink(ViewRes.SharedStrings.NextPageStr, "Page", new { pageNumber = Model.NextPageNumber }, new { @class = "link" })
    </div>
}
